package command;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zenghy
 **/
@Slf4j
public class BuyStock implements Order {

    private Stock stock;

    public BuyStock(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.buy();
    }
}
